/*
 * File:   InvalidModelExceptionTest.cpp
 * Author: Guilherme Monteiro
 *
 * Created on 22/03/2013, 15:18:26
 */

#include "InvalidModelExceptionTest.h"



CPPUNIT_TEST_SUITE_REGISTRATION(InvalidModelExceptionTest);

InvalidModelExceptionTest::InvalidModelExceptionTest() {
}

InvalidModelExceptionTest::~InvalidModelExceptionTest() {
}

void InvalidModelExceptionTest::setUp() {
}

void InvalidModelExceptionTest::tearDown() {
}

void InvalidModelExceptionTest::testWhat() {
    InvalidModelException* invalidModelException = new InvalidModelException();
    const char* result = invalidModelException->what();
    string msg = "ERROR ==> An invalid model gone passed as argument, verify it and try again.";
    if (strcmp(result, msg.c_str()) != 0) {
        CPPUNIT_ASSERT(false);
    }
}

